import allRoutes from "./generateRoute"

let homeRoute=allRoutes.find(item=>item.path==='/home')
// console.log(homeRoute)
// console.log(allRoutes)
let paymentRoute=homeRoute.children.find(item=>item.path==='payment')
let preorderRoute=homeRoute.children.find(item=>item.path==='preorder')
// console.log(paymentRoute,'=====',preorderRoute)
// console.log(allRoutes)
// 动态路由
let dynamicRoute={
    path:'/',
    // children:[],
    children:[paymentRoute,preorderRoute],
    component:()=>import(/*webpackChunkName:'layout'*/"@/layout/container.vue"),
}

export default dynamicRoute